package com.lgkj.ui.manager;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.lgkj.R;
import com.lgkj.ui.BaseActivity;
import com.lgkj.utils.SharedPreferencesUtils;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by Administrator on 2018/6/21 0021.
 */

public class ShopManagerActivity extends BaseActivity {
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_item1)
    TextView tvItem1;
    @BindView(R.id.tv_item2)
    TextView tvItem2;
    @BindView(R.id.tv_item3)
    TextView tvItem3;
    @BindView(R.id.tv_item4)
    TextView tvItem4;
    @BindView(R.id.tv_item5)
    TextView tvItem5;
    @BindView(R.id.tv_item6)
    TextView tvItem6;
    @BindView(R.id.tv_item7)
    TextView tvItem7;

    @Override
    public int getLayoutId() {
        return R.layout.activity_shop_manager;
    }

    @Override
    public void initView() {
        setTitle("店铺管理");
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    public void initData() {
        String shop_id = SharedPreferencesUtils.getParam(ShopManagerActivity.this, "shop_id", "").toString();
        if (shop_id != null && shop_id.length() > 0) {

        } else {

        }
    }


    @OnClick({R.id.tv_item1, R.id.tv_item2, R.id.tv_item3, R.id.tv_item4, R.id.tv_item5, R.id.tv_item6, R.id.tv_item7})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_item1:
                startsActivity(new Intent(ShopManagerActivity.this, ShopManagerInfoActivity.class));
                break;
            case R.id.tv_item2:
                startsActivity(new Intent(ShopManagerActivity.this, ShopAmbientActivity.class));
                break;
            case R.id.tv_item3:
                startsActivity(new Intent(ShopManagerActivity.this, ShopTrendsActivity.class));
                break;
            case R.id.tv_item4:   //造型师
                startsActivity(new Intent(ShopManagerActivity.this, StylistActivity.class));
                break;
            case R.id.tv_item5:
                startsActivity(new Intent(ShopManagerActivity.this, HairSalonActivity.class));
                break;
            case R.id.tv_item6:
                startsActivity(new Intent(ShopManagerActivity.this, PriceActivity.class));
                break;
            case R.id.tv_item7:
                startsActivity(new Intent(ShopManagerActivity.this, ShopAdActivity.class));
                break;
        }
    }
}
